package com.randi.file.entity.vo;

import com.randi.file.enums.MineEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
 * @author ziye
 */
@Data
@ApiModel(value = "FileUploadMergeVo对象", description = "文件分片合并")
public class FileSliceMergeVo {

    @NotBlank(message = "文件哈希不能为空")
    @ApiModelProperty("文件哈希")
    private String fileHash;

    @NotBlank(message = "文件哈希不能为空")
    @ApiModelProperty("文件哈希")
    private String fileName;

    @NotBlank(message = "文件后缀不能为空")
    @ApiModelProperty("文件后缀")
    private String fileSuffix;

    @NotNull(message = "文件大小不能为空")
    @ApiModelProperty(value = "文件大小")
    private BigInteger fileSize;

    @ApiModelProperty(value = "文件类型")
    private String mineType = MineEnum.$OTHER.getValue();

}
